package cn.wisteria._collection;

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 集合的实现
 * </p>
 *
 * @author: zhu.chen
 * @date: 2021/3/26
 * @version: v1.0.0
 */
public class CollectionMain {

    public static void main(String[] args) {
        List list1 = Lists.newArrayList();
        // [1, 2, 3, 4]
        ImmutableList immutableList = ImmutableList.of(1, 2, 3, 4);
        System.out.println(immutableList);

        Set set = Sets.newHashSet();
        ImmutableSet immutableSet = ImmutableSet.of(1, 2, 3, 4);
    }

}
